#pragma GCC optimize(2)
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
#define pi acos(-1.0)
#define e exp(1.0)
const ll maxn=2e5+7;
ll A[maxn];
bool vis[maxn];
int main()
{
//  freopen(".../.txt","w",stdout);
	ios::sync_with_stdio(false);
	ll T,i,j,N;
	cin>>T;
	while(T--)
	{
		cin>>N;
		memset(vis,0,sizeof(vis));
		for(i=0;i<N;i++)
		cin>>A[i];
		bool flag=0;
		for(i=0;i<N;i++)
		{
			ll x=((i+A[i])%N+N)%N;
			if(vis[x])
			{
				flag=1;
				break;
			}
			vis[x]=1;
		} 
		if(!flag)
		puts("YES");
		else
		puts("NO");
	}
	return 0;
}
